package com.mynewspaper.directaction;

import com.mynewspaper.app.DirectAction;
import com.mynewspaper.components.Main;
import com.webobjects.appserver.WOActionResults;
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WORequest;

public class DirectActionMenu extends DirectAction {

	public DirectActionMenu(WORequest request) {
		super(request);
	}
		
	public WOActionResults newsAction() {
		WOComponent page = pageWithName(Main.class.getName());
		page.takeValueForKey(true, "showNews");
		return page;
	}
	
	public WOActionResults registrationAction() {
		WOComponent page = pageWithName(Main.class.getName());
		page.takeValueForKey(true, "showRegistration");
		return page;
	}
	
	public WOActionResults contactsAction() {
		WOComponent page = pageWithName(Main.class.getName());
		page.takeValueForKey(true, "showContacts");
		return page;
	}
}
